﻿namespace MicroCloud.Utils
{
    /// <summary>
    /// 操作结果类型
    /// </summary>
    [Description("操作结果类型")]
    public enum OperationResultType
    {
        #region 2XX
        /// <summary>
        /// 成功
        /// </summary>
        [Description("成功")]
        Success = 200,

        #endregion

        #region 4XX
        /// <summary>
        /// 错误
        /// </summary>
        [Description("错误")]
        Error = 400,

        /// <summary>
        /// 未经授权
        /// </summary>
        [Description("未经授权")]
        Unauthorized = 401,

        /// <summary>
        /// 被禁止
        /// </summary>
        [Description("被禁止")]
        Forbidden = 403,

        /// <summary>
        /// 未找到 
        /// </summary>
        [Description("未找到")]
        NotFound = 404,

        /// <summary>
        /// 不被允许 
        /// </summary>
        [Description("不被允许")]
        NotAllowed = 405,

        /// <summary>
        /// 不被支持
        /// </summary>
        [Description("不被支持")]
        Unsupported = 415,

        /// <summary>
        /// 被锁定
        /// </summary>
        [Description("被锁定")]
        Locked = 423,

        #endregion

        #region 5XX
        /// <summary>
        /// 内部错误
        /// </summary>
        [Description("内部错误")]
        InternalError = 500,

        /// <summary>
        /// 未实现
        /// </summary>
        [Description("未实现")]
        NotImplemented = 501,

        #endregion

    }

}
